package com.extend_;

/**
 * @Author 小闽
 * @Date 2024/8/8 22:12
 * @PackageName: com.extend_
 * @ClassName: Graduate
 * @Description: 继承
 * @Version 1.0
 */
public class Graduate {
    /**
     * 大学生->模拟大学生考试的情况
     */
    public String name;
    public int age;
    private double score;

    public void setScore(double score) {
        this.score = score;
    }
    public void testing(){
        System.out.println("大学生" + name + "正在考大学数学...");
    }
    public void showInfo(){
        System.out.println("小学生的信息为：" + "姓名：" + name + "年龄：" + age + "成绩：" + score);
    }
}
